package com.joysuch.wwyt.api.dataaccess;

import com.joysuch.wwyt.api.config.entity.DataAccessConfig;
import com.joysuch.wwyt.api.dataaccess.bean.OrgCodeBean;
import com.joysuch.wwyt.api.dataaccess.bean.ThreeCardInBean;
import com.joysuch.wwyt.bp.entity.BpEmergencyExerciseRecord;
import com.joysuch.wwyt.bp.entity.BpProductionFacility;
import com.joysuch.wwyt.bp.entity.BpWorkSafetyCert;
import com.joysuch.wwyt.bp.entity.contractor.BpContractor;
import com.joysuch.wwyt.edu.entity.EduTrainningRecord;
import com.joysuch.wwyt.risk.entity.RiskDistrict;
import com.joysuch.wwyt.risk.entity.RiskPoint;
import javafx.util.Pair;

import java.util.List;
import java.util.Map;

/**
 * @Author ZhangDong
 * @Date 2020/8/17 14:11
 */
public interface DataAccessService {

    Pair<String, DataAccessConfig> getCode();

    void safeDevice(List<BpProductionFacility> deviceList);

    boolean isOpen();

    boolean isWorkLevelOpen();

    void trainRecord(EduTrainningRecord record);

    void emergencyExerciseRecord(BpEmergencyExerciseRecord record);

    void riskDistrict(String formData, String formKeyLabelJson);

    void riskArea(List<RiskDistrict> districtList);

    void riskPoint(List<RiskPoint> riskPointList);

    void threeCard(List<ThreeCardInBean> inBeanList);

    void contractor(BpContractor bpContractor);

    void workApply(BpWorkSafetyCert cert);

    void sceneTrain(EduTrainningRecord record);

    void workLevel(Map<OrgCodeBean, List<String>> map);

    void riskControl(RiskPoint point);

    void safeInput(String formData, String formKeyLabelJson);

    void hiddenDangerReport(String formData, String formKeyLabelJson);

    void lawStandardReport(String formData, String formKeyLabelJson);

    void factoryOveralarm();

    void leaderDutyTable(String formData, String formKeyLabelJson);

    void leaderDutyRecord(String formData, String formKeyLabelJson);

    void changeApply(String formData, String formKeyLabelJson);

    void dangerInvestigate(RiskPoint riskPoint);
}
